#include <rtdef.h>
#include <rtthread.h>
#include "power.h"
rt_device_t ADCdev;
        

void power_thread_entry(void *parameter)
{
    int i=0;
    rt_err_t result;

    ADCdev = rt_device_find("power_gpio");
    if (ADCdev)
    {
        /* 打开设备 */
        rt_device_open(ADCdev, RT_DEVICE_OFLAG_RDWR);
    }

    while(1)
    {
        rt_thread_delay(1000);
    }
    
}